<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="container">
<div id="info">
	<h2><img src="./image/title_img13.jpg"/></h2>
</div>
	<div id="allList">
		<form name="condition" action="list.do" method="get">
			<table align="center" width=500px>
				<tr>
					<td>
						<select name="age">
							<option value="">선택안함</option>
							<option value="1">15세 이하</option>
							<option value="16">16~20세</option>
							<option value="21">21~25세</option>
							<option value="26">26~31세</option>
							<option value="31">31~35세</option>
							<option value="36">36~40세</option>
							<option value="41">41세 이상</option>
						</select>
					</td>
					<td>
						<select name="home">
							<option value="">선택안함</option>
							<option value="수도권">수도권</option>
							<option value="강원도">강원도</option>
							<option value="경상도">경상도</option>
							<option value="전라도">전라도</option>
							<option value="충청도">충청도</option>
							<option value="제주도">제주도</option>
						</select>
					</td>
					<td>
						<select name="height">
							<option value="">선택안함</option>
							<option value="150">150Cm 이하</option>
							<option value="151">151~155Cm</option>
							<option value="156">156~160Cm</option>
							<option value="161">161~165Cm</option>
							<option value="166">166~170Cm</option>
							<option value="171">171~175Cm</option>
							<option value="176">176~180Cm</option>
							<option value="181">181Cm 이상</option>
						</select>
					</td>
					<td>
						<select name="bodyty">
							<option value="">선택안함</option>
							<option value="날씬형">날씬형</option>
							<option value="보통형">보통형</option>
							<option value="통통형">통통형</option>
							<option value="뚱뚱형">뚱뚱형</option>
							<option value="근육형">근육형</option>
						</select>
					</td>
					<td>
						<input type="submit" value="조건건색">
					</td>
					<td>${pagingHtml}</td>
				</tr>
			</table>
		</form>
		<c:forEach var="allList" items="${list}">
			<div class="listbox">
				<table style="width: 200px; height: 250px">
					<tr>
						<td colspan="2" style="height: 30px; border:1px solid;" align="center">${allList.name}</td>
					</tr>
					<tr>
						<td colspan="2" style="height: 160px; border:1px solid" align="center"><a href="listDetail.do?detail_id=${allList.id}"><img src="${pageContext.request.contextPath}/upload/${allList.image}" width="130px" height="150px"></a></td>
					</tr>
					<tr>
						<td style="height: 30px; width: 100px; border:1px solid" align="center">나이 : ${allList.age}</td><td style="height: 30px; border:1px solid" align="center">몸매 : ${allList.bodyty}</td>
					</tr>
					<tr>
						<td style="height: 30px; width: 100px; border:1px solid" align="center">지역 : ${allList.home}</td><td style="height: 30px; border:1px solid" align="center">성격 : ${allList.charac}</td>
					</tr>
				</table>
			</div>
		</c:forEach>
	</div>
</div>